//
//  PYVideoPlayer.h
//  catuncel
//
//  Created by Jim on 2017/12/13.
//  Copyright © 2017年 Jim. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface PYVideoPlayer : NSObject

+ (instancetype)sharedInstance;

@property (nonatomic, assign) BOOL mute;

@property (nonatomic, assign) BOOL cancelAutoReplay;

@property (nonatomic, copy, readonly) NSString *url;

@property (nonatomic, copy, readonly) NSString *pauseUrl;

- (void)playWithUrl:(NSString *)url showView:(UIView *)containerView newsId:(NSString *)newsId;

- (void)playWithLocalUrl:(NSURL *)localUrl showView:(UIView *)containerView;

- (void)playWithUrl:(NSString *)url showView:(UIView *)containerView mute:(BOOL)mute newsId:(NSString *)newsId aspectFit:(BOOL)aspectFit;

//本地播放视频
-(void)playStoreWithUrl:(NSURL*)url showView:(UIView*)showView;

- (void)stop;

- (void)pause;

- (void)resumeWithContainerView:(UIView *)containerView url:(NSString *)url;

@end
